﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Frogism.Core"
                   namespace="Frogism.Core">

  <class name="Account">
    <id name="Id">
      <generator class="identity" />
    </id>
    <property name="Name" />
    <property name="IsActive" />
    <property name="AccountType" column="AccountTypeId" />
    <property name="MaxValue" />
    <property name="MinValue" />
    <property name="NextGoalValue" />
    <property name="Purpose" />

    <set name="Transactions" lazy="false" access="field.camelcase-underscore">
      <key column="AccountId" />
      <one-to-many class="Transaction"  />
    </set>

  </class>
</hibernate-mapping>

